package com.cssy.xxkj.logic.dao;

import java.util.List;
import java.util.Map;

import org.springframework.dao.DataAccessException;

import com.cssy.xxkj.logic.entity.LogicMaterialBackItemDO;

/**
 * 数据访问对象接口
 * @since 2014-12-31
 */
public interface LogicMaterialBackItemDAO {

    /**
     * 插入数据
     * @param logicMaterialBackItemDO
     * @return 插入数据的主键
     */
    public String insertLogicMaterialBackItemDO(LogicMaterialBackItemDO logicMaterialBackItemDO) throws DataAccessException;

    /**
     * 统计记录数
     * @param logicMaterialBackItemDO
     * @return 查出的记录数
     */
    public Integer countLogicMaterialBackItemDOByExample(LogicMaterialBackItemDO logicMaterialBackItemDO) throws DataAccessException;

    /**
     * 更新记录
     * @param logicMaterialBackItemDO
     * @return 受影响的行数
     */
    public Integer updateLogicMaterialBackItemDO(LogicMaterialBackItemDO logicMaterialBackItemDO) throws DataAccessException;

    /**
     * 获取对象列表
     * @param logicMaterialBackItemDO
     * @return 对象列表
     */
    public List<LogicMaterialBackItemDO> findListByExample(LogicMaterialBackItemDO logicMaterialBackItemDO) throws DataAccessException;
    
    public List<LogicMaterialBackItemDO> findListByMap(Map<String, Object> paramMap)throws DataAccessException;

    /**
     * 根据主键获取logicMaterialBackItemDO
     * @param id
     * @return logicMaterialBackItemDO
     */
    public LogicMaterialBackItemDO findLogicMaterialBackItemDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicMaterialBackItemDOByPrimaryKey(String id) throws DataAccessException;

}